package com.beidouapp.mq.service;

import com.wisesoft.mq.EventProcesser;

import java.util.Date;

/**
 * Created by Administrator on 2016/7/28.
 */
public class ATopicProcesser implements EventProcesser {
    @Override
    public void process(Object e) {
        try {
            System.out.println("A:"+new Date().getTime());
            System.out.println("内容:"+e.toString());
//            System.out.println(e);
//            if(e instanceof People){
//                People people = (People)e;
//                System.out.println(people.getSpouse());
//                System.out.println(people.getFriends());
//            }
        }catch (Exception ex)
        {
            ex.getMessage();
        }
    }
}
